/**
 * 
 */
package sk.stuba.fiit.foo07.genex.beans;

import java.sql.Timestamp;
import java.util.ArrayList;

/**
 * @author Martin
 * 
 */
public class Test {
    private String name;
    private String subject;
    private Timestamp generated;
    private Integer testID;
    private Integer userID;
    private Integer categoryID;
    private ArrayList<QuestionPoints> questionPoints;

    public Test() {

    }

    public Test(String name, String subject, Timestamp generated,
            Integer testID, Integer userID, Integer categoryID,
            ArrayList<QuestionPoints> questionPoints) {
        super();
        this.name = name;
        this.subject = subject;
        this.generated = generated;
        this.testID = testID;
        this.userID = userID;
        this.categoryID = categoryID;
        this.questionPoints = questionPoints;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     *                the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the subject
     */
    public String getSubject() {
        return subject;
    }

    /**
     * @param subject
     *                the subject to set
     */
    public void setSubject(String subject) {
        this.subject = subject;
    }

    /**
     * @return the generated
     */
    public Timestamp getGenerated() {
        return generated;
    }

    /**
     * @param generated
     *                the generated to set
     */
    public void setGenerated(Timestamp generated) {
        this.generated = generated;
    }

    /**
     * @return the testID
     */
    public Integer getTestID() {
        return testID;
    }

    /**
     * @param testID
     *                the testID to set
     */
    public void setTestID(Integer testID) {
        this.testID = testID;
    }

    /**
     * @return the userID
     */
    public Integer getUserID() {
        return userID;
    }

    /**
     * @param userID
     *                the userID to set
     */
    public void setUserID(Integer userID) {
        this.userID = userID;
    }

    /**
     * @return the categoryID
     */
    public Integer getCategoryID() {
        return categoryID;
    }

    /**
     * @param categoryID
     *                the categoryID to set
     */
    public void setCategoryID(Integer categoryID) {
        this.categoryID = categoryID;
    }

    /**
     * @return the questionPoints
     */
    public ArrayList<QuestionPoints> getQuestionPoints() {
        return questionPoints;
    }

    /**
     * @param questionPoints
     *                the questionPoints to set
     */
    public void setQuestionPoints(ArrayList<QuestionPoints> questionPoints) {
        this.questionPoints = questionPoints;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return this.name;
    }
}
